﻿using IISWebManager.Domain.Abstract;
using IISWebManager.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace IISWebManager.WebUI.Controllers
{
    public class IISController : Controller
    {
        private IWebRepository iisRepository;

        public IISController(IWebRepository iisRepository)
        {
            this.iisRepository = iisRepository;
        }

        public ActionResult Index()
        {
            return View();
        }

        public ViewResult Sites()
        {
            List<SiteParameter> model = iisRepository.GetSites();            
            return View(model);
        }
    }
}
